# -*- coding: utf-8 -*- 

###########################################################################
## Python code generated with wxFormBuilder (version May 29 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class rootframe
###########################################################################

class rootframe ( wx.Frame ):
	
	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"我的第一个窗口", pos = wx.DefaultPosition, size = wx.Size( 380,400 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
		
		self.SetSizeHints( wx.Size( 380,400 ), wx.Size( -1,-1 ) )
		self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_ACTIVECAPTION ) )
		
		sbSizer1 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, wx.EmptyString ), wx.VERTICAL )
		
		bSizer1 = wx.BoxSizer( wx.VERTICAL )
		
		self.inputAndresult = wx.TextCtrl( sbSizer1.GetStaticBox(), wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_LEFT )
		bSizer1.Add( self.inputAndresult, 1, wx.EXPAND, 5 )
		
		self.deletebutton = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"←", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.deletebutton.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		bSizer1.Add( self.deletebutton, 0, wx.EXPAND, 5 )
		
		
		sbSizer1.Add( bSizer1, 1, wx.EXPAND, 5 )
		
		gSizer1 = wx.GridSizer( 4, 4, 0, 0 )
		
		self.seven = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"7", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.seven.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.seven, 0, wx.EXPAND, 5 )
		
		self.eight = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"8", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.eight.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.eight, 0, wx.EXPAND, 5 )
		
		self.nine = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"9", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.nine.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.nine, 0, wx.EXPAND, 5 )
		
		self.add = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"+", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.add.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.add, 0, wx.EXPAND, 5 )
		
		self.four = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"4", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.four.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.four, 0, wx.EXPAND, 5 )
		
		self.five = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"5", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.five.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.five, 0, wx.EXPAND, 5 )
		
		self.six = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"6", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.six.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.six, 0, wx.EXPAND, 5 )
		
		self.subtract = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"-", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.subtract.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.subtract, 0, wx.EXPAND, 5 )
		
		self.one = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"1", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.one.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.one, 0, wx.EXPAND, 5 )
		
		self.two = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"2", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.two.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.two, 0, wx.EXPAND, 5 )
		
		self.three = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"3", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.three.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.three, 0, wx.EXPAND, 5 )
		
		self.multiply = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"×", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.multiply.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.multiply, 0, wx.EXPAND, 5 )
		
		self.zero = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"0", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.zero.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.zero, 0, wx.EXPAND, 5 )
		
		self.point = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u".", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.point.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.point, 0, wx.EXPAND, 5 )
		
		self.equil = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"=", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.equil.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.equil, 0, wx.EXPAND, 5 )
		
		self.divide = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"÷", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.divide.SetFont( wx.Font( 20, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, "微软雅黑" ) )
		
		gSizer1.Add( self.divide, 0, wx.EXPAND, 5 )
		
		
		sbSizer1.Add( gSizer1, 1, wx.EXPAND, 5 )
		
		
		self.SetSizer( sbSizer1 )
		self.Layout()
		
		self.Centre( wx.BOTH )
		
		# Connect Events
		self.deletebutton.Bind( wx.EVT_BUTTON, self.deleteclick )
		self.seven.Bind( wx.EVT_LEFT_DOWN, self.sevenclick )
		self.eight.Bind( wx.EVT_LEFT_DOWN, self.eightclick )
		self.nine.Bind( wx.EVT_LEFT_DOWN, self.nineclick )
		self.add.Bind( wx.EVT_BUTTON, self.addclick )
		self.add.Bind( wx.EVT_LEFT_DOWN, self.addclick )
		self.four.Bind( wx.EVT_LEFT_DOWN, self.fourclick )
		self.five.Bind( wx.EVT_LEFT_DOWN, self.fiveclick )
		self.six.Bind( wx.EVT_LEFT_DOWN, self.sixclick )
		self.subtract.Bind( wx.EVT_LEFT_DOWN, self.subtractclick )
		self.one.Bind( wx.EVT_LEFT_DOWN, self.oneclick )
		self.two.Bind( wx.EVT_LEFT_DOWN, self.twoclick )
		self.three.Bind( wx.EVT_LEFT_DOWN, self.threeclick )
		self.multiply.Bind( wx.EVT_LEFT_DOWN, self.multiplyclick )
		self.zero.Bind( wx.EVT_LEFT_DOWN, self.zeroclick )
		self.point.Bind( wx.EVT_LEFT_DOWN, self.pointclick )
		self.equil.Bind( wx.EVT_LEFT_DOWN, self.equilclick )
		self.divide.Bind( wx.EVT_LEFT_DOWN, self.divideclick )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def deleteclick( self, event ):
		event.Skip()
	
	def sevenclick( self, event ):
		event.Skip()
	
	def eightclick( self, event ):
		event.Skip()
	
	def nineclick( self, event ):
		event.Skip()
	
	def addclick( self, event ):
		event.Skip()
	
	
	def fourclick( self, event ):
		event.Skip()
	
	def fiveclick( self, event ):
		event.Skip()
	
	def sixclick( self, event ):
		event.Skip()
	
	def subtractclick( self, event ):
		event.Skip()
	
	def oneclick( self, event ):
		event.Skip()
	
	def twoclick( self, event ):
		event.Skip()
	
	def threeclick( self, event ):
		event.Skip()
	
	def multiplyclick( self, event ):
		event.Skip()
	
	def zeroclick( self, event ):
		event.Skip()
	
	def pointclick( self, event ):
		event.Skip()
	
	def equilclick( self, event ):
		event.Skip()
	
	def divideclick( self, event ):
		event.Skip()
	

